package com.clf.data.redis.core.json.ops.impl;

import com.clf.data.redis.core.json.FastJsonRedisTemplate;
import org.springframework.data.redis.core.RedisOperations;

/**
 * 注入FastJsonRedisTemplate，并覆盖getOperations
 * @author <a href="mailto:zhudelie@zuozh.com">zhudelie</a>
* @version 
* @since JDK 1.6
* create on 2017年3月31日
* Copyright 2017 ZZJR All Rights Reserved.
*
*/
public abstract class OperationsAware<K,V> {
	protected FastJsonRedisTemplate<K, V> template;
	public OperationsAware(FastJsonRedisTemplate<K, V> template){
		this.template = template;
	}
	public RedisOperations<K, V> getOperations(){
		return template;
	}
}
